//
//  VOHMVCollectionViewCell.m
//  VoiceOfHeart
//  Created by 吉龙 on 16/8/15.
//  Copyright © 2016年 吉龙. All rights reserved.
//

#import "VOHMVCollectionViewCell.h"
@interface VOHMVCollectionViewCell ()
@property(nonatomic, strong)UIImageView *imageView;

@property(nonatomic, strong)UILabel *title;

@property(nonatomic, strong)UILabel *singer;

@property(nonatomic, strong)UILabel *playNumber;
@end
@implementation VOHMVCollectionViewCell
-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self setUpView];
    }
    return self;
}
-(void)setUpView{
    self.imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"check_bg_image_151x93_@2x"]];
    [self addSubview:self.imageView];
    self.title = [[UILabel alloc] init];
    self.title.text = @"乐天免税店全新MV";
    [self addSubview:self.title];
    self.title.font = [UIFont fontWithName:@"ArialMT" size:12];
    self.singer = [[UILabel alloc] init];
    self.singer.text = @"I.B.J";
    self.singer.textColor = [UIColor greenColor];
    [self addSubview:self.singer];
    self.singer.font = [UIFont fontWithName:@"ArialMT" size:12];
    self.playNumber = [[UILabel alloc] init];
    self.playNumber.text = @"播放数量：23,000";
    [self addSubview:self.playNumber];
    self.playNumber.font = [UIFont fontWithName:@"ArialMT" size:12];
}
-(void)layoutSubviews{
    [super layoutSubviews];
    self.imageView.frame = CGRectMake(5, 5, ScreenWidth * 0.5 - 7.5, 93);
    self.title.frame = CGRectMake(10, CGRectGetMaxY(self.imageView.frame) + 5, self.frame.size.width, 20);
    self.singer.frame = CGRectMake(10, CGRectGetMaxY(self.title.frame) + 5, self.frame.size.width, 20);
    self.playNumber.frame = CGRectMake(10, CGRectGetMaxY(self.singer.frame) + 5, self.frame.size.width, 20);
}


@end
